.login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f7fa;
}
.login-container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 20px;
  position: relative;
}

.login-container h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3f8cff;
  box-shadow: 0 0 0 2px rgba(63, 140, 255, 0.2);
}

.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  margin-left: -10px;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.checkbox-label p {
  width: 70px;
  font-size: 12px;
  color: #666;
}

.form-options a {
  color: #3f8cff;
  text-decoration: none;
  font-size: 14px;
}

.form-options a:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: #3f8cff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #357abd;
}

.register-link {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.register-link a {
  color: #4a90e2;
  text-decoration: none;
  margin-left: 4px;
}

.register-link a:hover {
  text-decoration: underline;
}

.error-messages {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
  height: 30px;
  line-height: 30px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  position: absolute;
  top: 57px;
  left: 80px;
}

input.error {
  border-color: #ff4d4f !important;
}

input.error:focus {
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .login-container {
    margin: 10px;
    padding: 20px;
  }

  .login-container h3 {
    font-size: 20px;
  }

  .form-group input,
  .login-button {
    padding: 10px;
  }
}
